package com.neu.flashmall.ms.mapper;

import com.neu.flashmall.ms.entity.SysMenu;
import com.neu.flashmall.ms.entity.SysRoleMenu;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @author 50286
* @description 针对表【sys_role_menu】的数据库操作Mapper
* @createDate 2022-06-30 14:50:23
* @Entity com.neu.flashmallms.entity.SysRoleMenu
*/
@Mapper
public interface SysRoleMenuMapper {

    int deleteByPrimaryKey(Long id);

    int insert(SysRoleMenu record);

    int insertSelective(SysRoleMenu record);

    SysRoleMenu selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysRoleMenu record);

    int updateByPrimaryKey(SysRoleMenu record);

    List<Long> selectAllMenuIdByRoleId(Integer roleId);

    List<SysRoleMenu> selectAll();

    int deleteByRoleId(Long roleId);

    int updateRoleMenu(List<SysRoleMenu> sysRoleMenuList);

    int deleteByMenuId(Long id);

    int deleteByMenuIdList(List<Long> idList);

    int superAdminGetAllAuthority(List<SysMenu> list);

    int deleteAllOtherRoleAuthority();


}
